lunomobs:register_mob("lunomobs:thief", {
	type = "monster",
	mob_name="LADRAO",
	hp_max = 4, --Padrão = 4
	xp_give = 6,
	--pos ={0.0,0.0,0.0},
	jump = true, 
	visual = "mesh",
	--mesh="mobs_sand_monster.x",
	mesh="mobs_humanoid.b3d",
	--mesh="teste01.x3d", --do blender(Exportado nao sei se fiz correto)
	--mesh="women.x", --(Conseguido de local externo. sem textura)
	textures = {"mobs_humanoid_thief.png"},
	collisionbox = {-0.3,-1.0,-0.3, 0.3,0.8,0.3},
	--visual_size = {x=8,z=10},
	visual_size= {x=1, y=1},
	drawtype = "front",
	makes_footstep_sound = true,
	view_range = 15,
	walk_velocity = 1,
	run_velocity = 3,
	damage = 2,
	--drops = {},
	drops = { 
		{name="lunotrades:minecoin", chance = 10, min=1, max=1,}, --Probabilidade é de 1:10 (=10%) de cair entre 1 a 3 "minemoedas"
		--{name="default:gold_lump", chance = 20, min=1, max=3 ,},	--Probabilidade é de 1:20 (=5%) de cair entre 1 a 3 "punhados de ouro"
	},
	light_resistant = true,
	armor = 100,
	water_damage = 1, --1=Morte lenta
	lava_damage = 10,
	light_damage = 0,
	shadow_damage = 3,
	attack_type = "dogfight",
	animation = {
		speed_normal=15, speed_run=30,
		stand_start=0, stand_end=79,
		walk_start=168, walk_end=187,
		run_start=168, run_end=187,
		punch_start=189, punch_end=199, --Ataca Parado.
		--punch_start=200, punch_end=219, --Ataca correndo. (incorreto! Pois o npc so ataca paradop quando chega perto.)
		--punch_start=81, punch_end=161, --sentado
	},
	sounds = {
		--random = "sword_1",
		random = "mobs_thief",
		attack = "sword_2",
		hit = "mobs_human_male_damage",
		die = "mobs_human_male_die", --Não existe som de morte! (mas eu fiz acontecer ^.^)
	},
	follow = "lunotrades:minecoin",
	--FONTE: https://github.com/PilzAdam/mobs/wiki/API
})

lunomobs:register_spawn("lunomobs:thief", {
	"default:dirt", "default:dirt_with_grass", "watershed:grass", 
	"default:grass_1", "default:grass_2", "default:grass_3", "default:grass_4", "default:grass_5", 
	"default:sand", "default:desert_sand", "default:mossycobble"
	}, 20, 11, 7000, 4, 31000
)

minetest.register_craftitem("lunomobs:thief", {
	description = "Ladrao",
	groups = { mobs=1 },
	inventory_image = "mob_humanoid_citizen.png",
	on_place = function(itemstack, placer, pointed_thing)
		if pointed_thing.above then
			local spawnpos = pointed_thing.above
			spawnpos = {x=spawnpos.x, y=spawnpos.y+1, z=spawnpos.z}
			minetest.env:add_entity(spawnpos, "lunomobs:thief")
			if not minetest.setting_getbool("creative_mode") then itemstack:take_item() end
		end
		return itemstack
	end,
})

minetest.register_alias("thief"	, "lunomobs:thief")
minetest.register_alias("ladrao"	, "lunomobs:thief")

